package com.ktwlsoft.fundmanage.domain.repository;

import com.ktwlsoft.fundmanage.domain.entity.RelationalPersonBank;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 买方卖方银行设置
 *
 * @author Name on 2019/9/5 10:09
 * @version 1.0
 */
public interface RelationalPersonBankRepository extends JpaRepository<RelationalPersonBank,Long>{

    /**
      * 通过关系人获取银行信息 on 2019/9/5 10:22
      *
      * @param relatedPersonId relatedPersonId
      * @return List<RelationalPersonBank>
      */
    List<RelationalPersonBank> findByRelatedPersonId(Long relatedPersonId);
}